<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>polkit</Name>
        <Homepage>https://www.freedesktop.org/wiki/Software/PolicyKit</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>service</IsA>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>PolicyKit Authorization Framework</Summary>
        <Description>polkit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.</Description>
        <Archive sha1sum="8961b976a5b6da141481593cb524da5b049fce2e" type="tarbz2">https://gitlab.freedesktop.org/polkit/polkit/-/archive/121/polkit-121.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>meson</Dependency>
            <Dependency>python3</Dependency>
            <Dependency versionFrom="1.14.0">dbus-devel</Dependency>
            <Dependency versionFrom="1.5.1">pam-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>expat-devel</Dependency>
            <Dependency versionFrom="2.7.0">duktape-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>elogind-devel</Dependency>
            <!--Dependency versionFrom="68.12.0">spidermonkey-devel</Dependency-->
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">0001-Updated-build-args-for-Pisi-Linux.patch</Patch> -->
<!--             <Patch level="1">polkit-0.118-duktape.patch</Patch> -->
<!--             <Patch level="1">polkit-0.118-elogind.patch</Patch> -->
            <Patch level="1">use-system-locale-in-gobject-api.diff</Patch>
<!--             <Patch level="1">CVE-2021-4034.patch</Patch> -->
<!--             <Patch level="1">CVE-2021-4115.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>polkit-devel</Name>
        <PartOf>system.devel</PartOf>
        <Summary>Development headers for polkit</Summary>
        <RuntimeDependencies>
            <Dependency release="current">polkit</Dependency>
            <Dependency>glib2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>polkit</Name>
        <RuntimeDependencies>
            <Dependency>pam</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>expat</Dependency>
            <!--             <Dependency>elogind</Dependency> --> <!--elogind çember-->
            <Dependency versionFrom="2.6.0">duktape</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/var/lib/polkit-1</Path>
            <Path fileType="data">/lib/systemd</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/gettext</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/pklocalauthority.8">man/pklocalauthority.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/polkit.8">man/polkit.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man8/polkitd.8">man/polkitd.8</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/pkaction.1">man/pkaction.1</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/pkcheck.1">man/pkcheck.1</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/pkexec.1">man/pkexec.1</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/polkit-1">polkit-1</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/polkit-1/rules.d/70-desktop-policy.conf">70-desktop-policy.conf</AdditionalFile>
            <!-- Example policy files from fedora
            <AdditionalFile owner="root" permission="0644" target="/var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla">10-desktop-policy.pkla</AdditionalFile>
            -->
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="18">
            <Date>2022-09-01</Date>
            <Version>0.121</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2022-07-21</Date>
            <Version>0.121</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2022-07-18</Date>
            <Version>0.120</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2022-07-05</Date>
            <Version>0.120</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2021-09-22</Date>
            <Version>0.119</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2021-07-08</Date>
            <Version>0.118</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="12">
            <Date>2021-06-08</Date>
            <Version>0.118</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2021-05-27</Date>
            <Version>0.118</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2021-04-30</Date>
            <Version>0.117</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2020-12-09</Date>
            <Version>0.117</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2020-10-19</Date>
            <Version>0.117</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
		<Update release="7">
            <Date>2019-12-26</Date>
            <Version>0.116</Version>
            <Comment>Version bump</Comment>
            <Name>idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2018-10-31</Date>
            <Version>0.115</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-09-16</Date>
            <Version>0.115</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-07-20</Date>
            <Version>0.113</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>0.113</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>0.113</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-09</Date>
            <Version>0.113</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
